package com.example.springbootxscjxt.mapper;

import com.example.springbootxscjxt.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
@Select("select * from user where username=#{username} AND password=#{password}")
    List<User> login(String username,String password);
    @Select("select * from student where username=#{username} AND password=#{password}")
    List<User> login1(String username,String password);

}

